package com.cskaoyan.mall.dto;

import com.cskaoyan.mall.commons.constant.SysRetCodeConstants;

import java.util.List;

/**
 * @ClassName AllItemServiceResponseUtil
 * @Description TODO
 * @Author XiaoWJ
 * @Date 2022/9/27 20:37
 **/
public class AllItemServiceResponseUtil {



    public AllItemServiceResponse setData(List<ItemDto> data) {

        AllItemServiceResponse allItemServiceResponse = new AllItemServiceResponse();

        allItemServiceResponse.setCode(SysRetCodeConstants.SERVICE_CALL_SUCCESS.getCode());
        allItemServiceResponse.setMsg(SysRetCodeConstants.SERVICE_CALL_SUCCESS.getMessage());

        allItemServiceResponse.setCallData(data);

        return allItemServiceResponse;
    }
}
